/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.javatrainning.hieptq.btvn2;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
 *
 * @author Hiep
 */
public class Bai4 {
    public static void main(String[] args) throws FileNotFoundException, IOException {
        BufferedReader br=new BufferedReader(new FileReader("B4.txt"));
        BigInteger a,b,tong,hieu,tich,thuong;
        String s;
        s=br.readLine();
        a=new BigInteger(s);
        System.out.println("Nhap so nguyen a: "+s);
        s=br.readLine();
        b=new BigInteger(s);
        System.out.println("Nhap so nguyen b: "+s);
        tong=a.add(b);
        System.out.println("Tong: "+tong);
        tich=a.multiply(b);
        System.out.println("Tich: "+tich);
        thuong=a.divide(b);
        System.out.println("Thuong: "+thuong);
    }
      
        }
        
 
